package com.fowo.api.common.excel;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


/**
 * 配置
 */
@Component
@Data
public class ExcelConfig implements InitializingBean {

    @Value("${fowo.excel.export.threshold:500}")
    private Long threshold;

    public static Long THRESHOLD;
    @Override
    public void afterPropertiesSet(){
        THRESHOLD = threshold;
    }
}
